#pragma once
#include "afxwin.h"
#include "RealObject/Customer.h"

// CProviderListDlg dialog

class CCustomerListDlg : public CDialog
{
	DECLARE_DYNAMIC(CCustomerListDlg)

public:
	CCustomerListDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CCustomerListDlg();

// Dialog Data
	enum { IDD = IDD_DIALOG_LIST_CUSTOMER };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButAddProv();
	afx_msg void OnLbnDblclkListProvider();
	virtual BOOL OnInitDialog();
public:
	void loadCustomer();
	CListBox m_ctrlList;
	CCustomer* m_pSelected;
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg void OnBnClickedButExit();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	afx_msg void OnBnClickedButtRefresh();
};
